﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F57 RID: 3927
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicReviveCostUpdateScNotify : IMessage<RogueMagicReviveCostUpdateScNotify>, IMessage, IEquatable<RogueMagicReviveCostUpdateScNotify>, IDeepCloneable<RogueMagicReviveCostUpdateScNotify>, IBufferMessage
	{
		// Token: 0x170031DD RID: 12765
		// (get) Token: 0x0600B01B RID: 45083 RVA: 0x001DC7CF File Offset: 0x001DA9CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicReviveCostUpdateScNotify> Parser
		{
			get
			{
				return RogueMagicReviveCostUpdateScNotify._parser;
			}
		}

		// Token: 0x170031DE RID: 12766
		// (get) Token: 0x0600B01C RID: 45084 RVA: 0x001DC7D6 File Offset: 0x001DA9D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicReviveCostUpdateScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170031DF RID: 12767
		// (get) Token: 0x0600B01D RID: 45085 RVA: 0x001DC7E8 File Offset: 0x001DA9E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicReviveCostUpdateScNotify.Descriptor;
			}
		}

		// Token: 0x0600B01E RID: 45086 RVA: 0x001DC7EF File Offset: 0x001DA9EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicReviveCostUpdateScNotify()
		{
		}

		// Token: 0x0600B01F RID: 45087 RVA: 0x001DC7F7 File Offset: 0x001DA9F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicReviveCostUpdateScNotify(RogueMagicReviveCostUpdateScNotify other) : this()
		{
			this.rogueReviveCost_ = ((other.rogueReviveCost_ != null) ? other.rogueReviveCost_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B020 RID: 45088 RVA: 0x001DC82C File Offset: 0x001DAA2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicReviveCostUpdateScNotify Clone()
		{
			return new RogueMagicReviveCostUpdateScNotify(this);
		}

		// Token: 0x170031E0 RID: 12768
		// (get) Token: 0x0600B021 RID: 45089 RVA: 0x001DC834 File Offset: 0x001DAA34
		// (set) Token: 0x0600B022 RID: 45090 RVA: 0x001DC83C File Offset: 0x001DAA3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData RogueReviveCost
		{
			get
			{
				return this.rogueReviveCost_;
			}
			set
			{
				this.rogueReviveCost_ = value;
			}
		}

		// Token: 0x0600B023 RID: 45091 RVA: 0x001DC845 File Offset: 0x001DAA45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicReviveCostUpdateScNotify);
		}

		// Token: 0x0600B024 RID: 45092 RVA: 0x001DC853 File Offset: 0x001DAA53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicReviveCostUpdateScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.RogueReviveCost, other.RogueReviveCost) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B025 RID: 45093 RVA: 0x001DC888 File Offset: 0x001DAA88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueReviveCost_ != null)
			{
				num ^= this.RogueReviveCost.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B026 RID: 45094 RVA: 0x001DC8C4 File Offset: 0x001DAAC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B027 RID: 45095 RVA: 0x001DC8CC File Offset: 0x001DAACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B028 RID: 45096 RVA: 0x001DC8D5 File Offset: 0x001DAAD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueReviveCost_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.RogueReviveCost);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B029 RID: 45097 RVA: 0x001DC908 File Offset: 0x001DAB08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueReviveCost_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueReviveCost);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B02A RID: 45098 RVA: 0x001DC948 File Offset: 0x001DAB48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicReviveCostUpdateScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueReviveCost_ != null)
			{
				if (this.rogueReviveCost_ == null)
				{
					this.RogueReviveCost = new ItemCostData();
				}
				this.RogueReviveCost.MergeFrom(other.RogueReviveCost);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B02B RID: 45099 RVA: 0x001DC99C File Offset: 0x001DAB9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B02C RID: 45100 RVA: 0x001DC9A8 File Offset: 0x001DABA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 122U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.rogueReviveCost_ == null)
					{
						this.RogueReviveCost = new ItemCostData();
					}
					input.ReadMessage(this.RogueReviveCost);
				}
			}
		}

		// Token: 0x04004762 RID: 18274
		private static readonly MessageParser<RogueMagicReviveCostUpdateScNotify> _parser = new MessageParser<RogueMagicReviveCostUpdateScNotify>(() => new RogueMagicReviveCostUpdateScNotify());

		// Token: 0x04004763 RID: 18275
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004764 RID: 18276
		public const int RogueReviveCostFieldNumber = 15;

		// Token: 0x04004765 RID: 18277
		private ItemCostData rogueReviveCost_;
	}
}
